import java.util.ArrayList;

public class Student {
    private String id;
    private String name;
    private ArrayList<Course> courses;

    public Student(String id, String name, ArrayList<Course> courses) {
        this.id = id;
        this.name = name;
        this.courses = courses;
    }

    @Override
    public String toString() {
        return "学号: " + id + ", 姓名: " + name;
    }

    // Getter 方法
    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public ArrayList<Course> getCourses() {
        return courses;
    }
}    